package exceptions;

public class MyException extends Exception {
	/**
   * 
   */
  private static final long serialVersionUID = 1L;
  protected int errCode;
	protected String msg;
	
	public MyException(int _errCode) {
		this.errCode = _errCode;
	}
	
	public MyException() {
		this.msg = null;
		this.errCode = 0;
	}
	
	public MyException(String message){
		super(message);
	}
	
	public void print(){
		System.out.print("ERROR CODE: " + this.errCode + "\t MSG is: " + this.msg);
	}
	
	public int getErrorCode(){
		return this.errCode;
	}
}
